<?php
/**
 * TOP API: itaoke.taobao.order.get request
 * 
 * @author auto create
 * @since 1.0, 2018.07.25
 */
class ItaokeTaobaoOrderGetRequest
{
	/** 
	 * 需返回的字段列表
	 **/
	private $fields;
	
	/** 
	 * 订单查询类型，创建时间“create_time”，或结算时间“settle_time”
	 **/
	private $queryType;
	
	/** 
	 * 第几页，默认1，1~100
	 **/
	private $pageNo;
	
	/** 
	 * 页大小，默认20，1~100
	 **/
	private $pageSize;
	
	/** 
	 * 订单查询时间范围,单位:秒,最小60,最大600,默认60
	 **/
	private $span;
	
	/** 
	 * 订单查询开始时间
	 **/
	private $startTime;
    /**
     * 订单查询开始时间
     **/
    private $endTime;
	
	/** 
	 * 订单状态，1: 全部订单，3：订单结算，12：订单付款， 13：订单失效，14：订单成功； 订单查询类型为‘结算时间’时，只能查订单结算状态
	 **/
	private $tkStatus;
	
	/**
	 * 场景订单场景类型，1:常规订单，2:渠道订单，3:会员运营订单，默认为1
	 **/
	private $orderScene;
	
	private $apiParas = array();
	
	public function setFields($fields)
	{
		$this->fields = $fields;
		$this->apiParas["fields"] = $fields;
	}

	public function getFields()
	{
		return $this->fields;
	}

	public function setQueryType($orderQueryType)
	{
		$this->queryType = $orderQueryType;
		$this->apiParas["query_type"] = $orderQueryType;
	}

	public function getQueryType()
	{
		return $this->queryType;
	}
	
	public function setOrderScene($orderScene)
	{
	    $this->orderScene = $orderScene;
	    $this->apiParas["order_scene"] = $orderScene;
	}
	
	public function getOrderScene()
	{
	    return $this->orderScene;
	}

	public function setP($pageNo)
	{
		$this->pageNo = $pageNo;
		$this->apiParas["p"] = $pageNo;
	}

	public function getP()
	{
		return $this->pageNo;
	}

	public function setPageSize($pageSize)
	{
		$this->pageSize = $pageSize;
		$this->apiParas["page_size"] = $pageSize;
	}

	public function getPageSize()
	{
		return $this->pageSize;
	}

	public function setEndTime($endTime)
	{
		$this->endTime = $endTime;
		$this->apiParas["end_time"] = $endTime;
	}

	public function getEndTime()
	{
		return $this->endTime;
	}

	public function setStartTime($startTime)
	{
		$this->startTime = $startTime;
		$this->apiParas["start_time"] = $startTime;
	}

	public function getStartTime()
	{
		return $this->startTime;
	}

	public function setTkStatus($tkStatus)
	{
		$this->tkStatus = $tkStatus;
		$this->apiParas["tk_status"] = $tkStatus;
	}

	public function getTkStatus()
	{
		return $this->tkStatus;
	}

	public function getApiMethodName()
	{
		return "itaoke.taobao.order.get";
	}
	
	public function getApiParas()
	{
		return $this->apiParas;
	}
	
	public function check()
	{
		
	}
	
	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
